package org.wzq.spring_aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 自动代理
 */
public class Main3 {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("aop-auto-proxy.xml");
        IStudentDao studentDao = (IStudentDao) ctx.getBean("studentPointcut");
        studentDao.save("123","kiki");
    }
}
